﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucShipTo.ascx.cs" Inherits="ucControl_ucShipTo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    .login, .register
    {
        border: 1px solid #CCCCCC;
        height: auto;
    }
    .log
    {
        background: none repeat scroll 0 0 #F3AB25;
        color: oldlace;
        font-weight: bold;
        padding: 5px 5px 5px 10px;
        text-transform: uppercase;
    }
    .log1
    {
        padding-left: 10px;
        padding-top: 10px;
    }
    .log2
    {
        padding-left: 10px;
        padding-top: 10px;
    }
    .log2 label
    {    	
    	line-height:27px;
    	vertical-align:top;
    }
    .log2 input
    {
    	height: 25px;
        line-height:25px;
    }
    .input input
    {
        border: 2px solid #F3AB25;
        border-radius: 7px 7px 7px 7px;
        height: 25px;
        line-height:25px;
        padding-left: 10px;
        margin-bottom: 5px;
    }
    .align
    {
        width: 300px;
        text-align: center;
    }
</style>
<div style="width: 100%">
    <div class="login" style="float: left; width: 100%">
        <div class="next_pre">
            <h1>
                CẬP NHẬT THÔNG TIN</h1>
        </div>
        <table class="log2" width="100%" border="0">
            <tr class="input">
                <td colspan="2">
                    <span style="font-weight: bold">1. Thông tin người mua</span>
                </td>
            </tr>
            <tr class="input">
                <td class="align">
                    Họ (*)
                </td>
                <td>
                    <asp:TextBox ID="txt_fistname" runat="server" Width="195px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                        ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="input">
                <td class="align">
                    Tên (*)
                </td>
                <td>
                    <asp:TextBox ID="txt_lastname" runat="server" Width="195px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                        ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="input">
                <td class="align">
                    Địa chỉ (*)
                </td>
                <td>
                    <asp:TextBox ID="txt_address" runat="server" Width="195px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*"
                        ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="input">
                <td class="align">
                    Mobile phone (*)
                </td>
                <td>
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers" TargetControlID="txtmobilephone">
                    </asp:FilteredTextBoxExtender>
                    <asp:TextBox ID="txtmobilephone" runat="server" Width="195px" ValidationGroup="Register"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr class="input">
                <td class="align">
                    Email (*)
                </td>
                <td>
                    <asp:TextBox ID="txt_email" runat="server" Width="195px" ValidationGroup="Register"></asp:TextBox>
                    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_email"
                        WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                    </asp:TextBoxWatermarkExtender>
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_email"
                        runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="Register"></asp:RequiredFieldValidator>&nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                        Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ControlToValidate="txt_email" SetFocusOnError="True" ValidationGroup="Register"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <hr style="width: 90%; border-color: Silver" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <span style="font-weight: bold">2. Thông tin người bán</span>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:RadioButton ID="cb1" runat="server" onclick="check()" GroupName="checkbox" Checked="True"
                        Text="Người nhận chính là quý khách" /><br />
                    <asp:RadioButton ID="cb2" runat="server" onclick="check()" GroupName="checkbox" Text="Địa chỉ khác" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="panel" runat="server">
            <table class="log2" width="100%" border="0">
                <tr class="input">
                    <td class="align" style="width: 100px">
                        Họ (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtho" runat="server" Width="195px"></asp:TextBox>
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr class="input">
                    <td class="align">
                        Tên (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtten" runat="server" Width="195px"></asp:TextBox>
                        <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr class="input">
                    <td class="align">
                        Địa chỉ (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtdiachi" runat="server" Width="195px"></asp:TextBox>
                        <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr class="input">
                    <td class="align">
                        Mobile phone (*)
                    </td>
                    <td>
                      <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers" TargetControlID="txtmobile">
                    </asp:FilteredTextBoxExtender>
                        <asp:TextBox ID="txtmobile" runat="server" Width="195px" ValidationGroup="Register"></asp:TextBox>
                        <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr class="input">
                    <td class="align">
                        Email (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtemail" runat="server" Width="195px" ValidationGroup="Register"></asp:TextBox>
                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtemail"
                            WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                        </asp:TextBoxWatermarkExtender>
                        &nbsp;<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator10" ControlToValidate="txtemail"
                            runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="Register"></asp:RequiredFieldValidator>--%>&nbsp;
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid email address"
                            Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="txtemail" SetFocusOnError="True" ValidationGroup="Register"></asp:RegularExpressionValidator>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <tr>
            <td colspan="2">
                <hr style="width: 90%; border-color: Silver" />
            </td>
        </tr>
        <table class="log2" width="100%" border="0">
            <tr>
                <td colspan="2">
                    <span style="font-weight: bold">3. Phương thức thanh toán</span>
                </td>
            </tr>
            <tr>
                <td class="align">
                </td>
                <td>
                    <asp:RadioButton ID="rdThanhtoansau" runat="server" Checked="true" Text="Thanh toán sau"
                        GroupName="thanhtoan" /><br />
                    <asp:RadioButton ID="rdChuyenkhoannganhang" runat="server" Text="Chuyển khoảng qua ngân hàng"
                        GroupName="thanhtoan" />
                </td>
            </tr>
            <tr>
                <td class="align">
                </td>
                <td>
                    <asp:Button ID="btnSubmit" runat="server" Text="Kiểm tra đơn hàng" Style="color: white;
                        margin-top: 15px; border-radius: 8px 0px 8px 0px; background: none repeat scroll 0px 0px #F3AB25;
                        height: auto; color: white; padding: 3px 6px; margin-bottom:20px;" ValidationGroup="Register" OnClick="btnSubmit_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>

<script type="text/javascript" language="javascript">
    function check() {
        var cb1 = document.getElementById("<%= cb1.ClientID %>");
        var cb2 = document.getElementById("<%= cb2.ClientID %>");
        var panel = document.getElementById("<%= panel.ClientID %>");
        var styleN = "";
        if (cb1.checked == true) {
            styleN = "none";
        }
        if (cb2.checked == true) {
            styleN = "inline";
        }
        document.getElementById("<%= panel.ClientID %>").style.display = styleN;
    }
    
</script>

